#ifndef _CLIENT_H
#define _CLIENT_H

#include "c_s.h"

int sock_fd, sock_fd2;
char server_ip[16];
char log_in_as[NAME_LEN_MAX + 1] ;
int user_online[USER_NUM_MAX];
char users[USER_NUM_MAX][NAME_LEN_MAX + 1];

int net_init (const char *);

int reg (const char *, const char *);
int log_in (const char *, const char *);
int log_out (const char *);
int user_ls (void);
int chat_to (const char *, const char *, const char *);
int chat_to_all (const char *, const char *);

#endif
